package com.sdeonline.bible.creencias;

import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;

public class CreenciasAdventistasActivity extends ListActivity {
	@Override
	public void onCreate(Bundle savedInstanceState) {
	  super.onCreate(savedInstanceState);
	
	  String[] beliefs = getResources().getStringArray(R.array.beliefs_titles_array);
	  BeliefsListAdapter mListAdapter = new BeliefsListAdapter(this, R.layout.beliefs_list_item, beliefs);

	  setListAdapter(mListAdapter);
	  
      ListView lv = getListView();
      lv.setTextFilterEnabled(true);
	}
	
    @Override
    protected void onListItemClick(ListView l, View v, int position, long id) {
    	super.onListItemClick(l, v, position, id);
        Intent i = new Intent(this, BeliefDescription.class);
        i.putExtra("id", position);
        startActivity(i);
    }
    
}